package com.ruoyi.project.websitenewstrends.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * newstrends对象 website_news_trends
 * 
 * @author lvyongwei
 * @date 2021-04-20
 */
@Alias("WebsiteNewsTrends")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class WebsiteNewsTrends extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 首页新闻动态id */
    private Long newsId;

    /** 新闻名称 */
    @Excel(name = "新闻名称")
    private String newsName;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String newsContent;

    /** 新闻图片 */
    @Excel(name = "新闻图片")
    private String newsPhoto;

    /** 附件内容 */
    @Excel(name = "附件内容")
    private String accessorys;

    /** 轮播 */
    @Excel(name = "轮播")
    private Integer ifShow;

    /**
     * 开始时间
     */
    private Date createTime;

    /**
     * 结束时间
     */
    private Date updateTime;

    public void setNewsId(Long newsId)
    {
        this.newsId = newsId;
    }

    public Long getNewsId()
    {
        return newsId;
    }
    public void setNewsName(String newsName) 
    {
        this.newsName = newsName;
    }

    public String getNewsName() 
    {
        return newsName;
    }
    public void setNewsContent(String newsContent) 
    {
        this.newsContent = newsContent;
    }

    public String getNewsContent() 
    {
        return newsContent;
    }
    public void setNewsPhoto(String newsPhoto) 
    {
        this.newsPhoto = newsPhoto;
    }

    public String getNewsPhoto() 
    {
        return newsPhoto;
    }
    public void setAccessorys(String accessorys) 
    {
        this.accessorys = accessorys;
    }

    public String getAccessorys() 
    {
        return accessorys;
    }
    public void setIfShow(Integer ifShow)
    {
        this.ifShow = ifShow;
    }

    public Integer getIfShow()
    {
        return ifShow;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("newsName", getNewsName())
            .append("newsContent", getNewsContent())
            .append("newsPhoto", getNewsPhoto())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("accessorys", getAccessorys())
            .append("ifShow", getIfShow())
            .toString();
    }
}
